import { addColorAlpha } from '@/utils'

/**
 * 设置vxetable表格的当前行颜色
 * @param color
 */
export function setTableCurrentColor(color: string) {
    document.documentElement.style.setProperty(
        '--vxe-table-row-current-background-color',
        addColorAlpha(color, 0.24)
    )
    document.documentElement.style.setProperty(
        '--vxe-table-column-current-background-color',
        addColorAlpha(color, 0.24)
    )
    document.documentElement.style.setProperty(
        '--vxe-table-row-hover-current-background-color',
        addColorAlpha(color, 0.32)
    )
    document.documentElement.style.setProperty(
        '--vxe-table-column-hover-background-color',
        addColorAlpha(color, 0.32)
    )
}
